package cn.edu.cqie.dao;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import cn.edu.cqie.entity.UserInfo;

@Repository
public interface UserInfoDao extends JpaRepository<UserInfo, Integer> {

	public Optional<UserInfo> findByOpenid(@Param("openid") String openid);

}
